package cn.stylefeng.guns.modular.pandian.service;

import cn.stylefeng.guns.base.pojo.page.LayuiPageInfo;
import cn.stylefeng.guns.modular.pandian.entity.PandianDetailed;
import cn.stylefeng.guns.modular.pandian.model.params.PandianDetailedParam;
import cn.stylefeng.guns.modular.pandian.model.result.PandianDetailedResult;
import cn.stylefeng.guns.modular.pandian.model.result.PandianJihuaUserResult;

import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 盘点库存明细表 服务类
 * </p>
 *
 * @author zhucx
 * @since 2022-01-10
 */
public interface PandianDetailedService extends IService<PandianDetailed> {

    /**
     * 新增
     *
     * @author zhucx
     * @Date 2022-01-10
     */
    void add(PandianDetailedParam param);

    /**
     * 删除
     *
     * @author zhucx
     * @Date 2022-01-10
     */
    void delete(PandianDetailedParam param);

    /**
     * 更新
     *
     * @author zhucx
     * @Date 2022-01-10
     */
    void update(PandianDetailedParam param);

    /**
     * 查询单条数据，Specification模式
     *
     * @author zhucx
     * @Date 2022-01-10
     */
    PandianDetailedResult findBySpec(PandianDetailedParam param);

    /**
     * 查询列表，Specification模式
     *
     * @author zhucx
     * @Date 2022-01-10
     */
    List<PandianDetailedResult> findListBySpec(PandianDetailedParam param);

    /**
     * 查询分页数据，Specification模式
     *
     * @author zhucx
     * @Date 2022-01-10
     */
     LayuiPageInfo findPageBySpec(PandianDetailedParam param,String condition);

	List<PandianDetailedResult> findPanDianPositionListBySpec(PandianDetailedParam pandianDetailedParam, Long userId,
			Long diskId);

	PandianDetailedResult findPanDianPositionBySpec(PandianDetailedParam pandianDetailedParam, Long userId,
			Long diskId);

	List<PandianDetailedResult> findPanDianGoodsListBySpec(PandianDetailedParam pandianDetailedParam, Long userId,
			Long diskId);

	List<PandianDetailedResult> findPanDianTrayListBySpec(PandianDetailedParam pandianDetailedParam, Long userId,
			Long diskId);

	PandianDetailedResult sumByspec(PandianDetailedParam param);

	boolean saveBatchList(List<PandianDetailedParam> addlist);

}
